<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--<script type="text/javascript" src="script/sms_asset_script.js"></script>-->
</head>
<body>
	<table width="795px"  border="0" cellspacing="0" cellpadding="0">
		<tr>
			<th colspan="2" bgcolor="#cff8ff" valign="center" height="40px" align="center"><font size="4">자산 식별</font></th>
		</tr>
		<tr>
			 <td valign="center" align="left" height="25">
			 	<a href="assetAction.do?mode=assetIdenty_list"><img src="img/total_btn.jpg" alt="전체" align="absmiddle"/></a>
					<select name="asset_no" id="asset_no" class="selectBox" onchange="javascript: assetListByAssetNo('assetIdenty_list')">
						<option value="0" selected>-----------------------</option>
					<c:forEach  var="aBaseList" items="${requestScope.assetBaseList}" varStatus="status">
						<option <c:if test="${aBaseList.asset_no == param.asset_no }">selected</c:if> value="${aBaseList.asset_no }">${aBaseList.asset_kind }</option>
					</c:forEach>
					</select>				 	
			 </td>
			<td align="right"><!-- 버튼 -->
				<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						   <td><a href="#" onclick="javascript: assetWritePage('assetIdenty_insertPage')"><img src="img/write_btn.jpg"/></a></td>
						  <td><a href="#" onclick="javascript: assetDelete()"><img src="img/delete_btn.jpg"/></a></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
		<!-- 내용 테이블 -->
		<td colspan="2">
			<table class="tb01" cellPadding="0" border="0" width="100%">
				<tr height="25px">
					<th class="whiteBot">기본정보</th>
				</tr>
			</table>
			<table class="tb01" cellPadding="0" border="0" width="100%">
				<tr height="25px">
					<th width="30px"><input type='checkbox' name='checkAll' onclick="javascript: selectAll()" style="cursor:pointer"></input></th>
					<th width="70px">자산유형</th>
					<th width="70px">자산코드</th>
					<th width="90px">자산명</th>
					<th width="50px">수량</th>
					<th width="80px">자산위치</th>
					<th width="80px">컨테이너</th>
					<th width="80px">소유자</th>
					<th width="80px">관리자</th>
					<th width="100px">업무프로세스</th>
					<th width="15px"></th>
				</tr>
			</table>	
			<!-- 스크롤 생성 -->
			<div style="overflow:auto; overflow-x: hidden; width: 100%; height: 393px">	
			    <table class="tb01" cellPadding="0" border="0" width="100%">
                    <c:choose>
                    	<c:when test="${fn:length(list)!= 0}">
                    	<form name="assetIdentyDelForm" action="assetAction.do" method="post">
                    	<input type="hidden" name="mode" value="assetIdentyDelete"></input>
                    	<c:forEach var="list" items="${requestScope.list}" varStatus="status">
                    		<tr height="20">
                    			<td align="center" width="30px"><input type="checkbox" name="check" id="check${status.index+1 }" style="cursor:pointer" value='${list.a_cd}'></input></td>
                    			<td style="word-wrap:break-word" width="70px">
                    				<a href="assetAction.do?mode=assetIdenty_updatePage&a_cd=${list.a_cd }" class="nor" title='${list.a_cd }'>${list.asset_kind }</a>
                    			</td>
                    			<td style="word-wrap:break-word" width="70px">
                    				<a href="assetAction.do?mode=assetIdenty_updatePage&a_cd=${list.a_cd }" class="nor" title='${list.a_cd }'>${list.a_cd }</a>
                    			</td>
                    			<td style="word-wrap:break-word" width="90px">
                    				<a href="assetAction.do?mode=assetIdenty_updatePage&a_cd=${list.a_cd }" class="nor" title='${list.a_nm }'>${list.a_nm }</a>
                    			</td>
                    			<td width="50px">
                    				${list.a_cnt }
                    			</td>
                    			<td width="80px">
                    				${list.a_loc }
                    			</td>
                    			<td width="80px">
                    				${list.a_con }
                    			</td>
                    			<td width="80px">
                    				${list.a_owner }
                    			</td>
                    			<td width="80px">
                    				${list.a_admin }
                    			</td>
                    			<td class="alignleft" width="100px">
                    				${list.job_process }
                    			</td>
	   					 	<td class="alignright" width="15px"></td>
                    		</tr>
                    	</c:forEach>
                    	</form>
                    	</c:when>
                    	<c:otherwise>
                    		<tr>
								<td align="center" colspan="11">-no data-</td>
							</tr>
                    	</c:otherwise>
                    	</c:choose>
			</table>
			</div>
			</td>
		</tr>
	</table>
</body>
</html>